package com.shaozi.nc.hibservice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.shaozi.data.hib.dao.BaseHibDao;
import com.shaozi.data.hib.service.BaseServiceImpl;
import com.shaozi.lib.throwable.SzException;
import com.shaozi.nc.data.hibVO.CrmToOpenseaCustomerVO;

@Service(value = "crmToOpenseaCustomerService")
public class CrmToOpenseaCustomerService extends BaseServiceImpl<CrmToOpenseaCustomerVO> {

	@Autowired
	public CrmToOpenseaCustomerService(BaseHibDao<CrmToOpenseaCustomerVO> baseHibDao) {
		super(baseHibDao);

	}

	@Transactional
	public void save(CrmToOpenseaCustomerVO vo) throws SzException {
		vo.setInsertTime(System.currentTimeMillis());
		getDao().getDaoSupport().insertObject(vo);
	}

}
